<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue.min.js"></script>
    <!-- 引入样式 组件库-->
    <link rel="stylesheet" href="../../element-ui/lib/theme-chalk/index.css">
    <script src="../../element-ui/lib/index.js"></script>
    <script type="text/javascript">
        var component1 = {
            template: '<p>{{name}}</p>',
            mounted: function () {
                console.log("component1 mounted");
            },
            data: function () {
                return {name: '我是一个组件'}
            }
        };
        Vue.component('aaa', component1);
    </script>
</head>
<body>
<div id="app">
    <aaa></aaa>
</div>
</body>
<script>
    new Vue({
        el: "#app",
    })
</script>
</html>
